package com.rc.saas.mini.model.rc;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RcMemberGainGradeSettingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RcMemberGainGradeSettingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGainGradeIdIsNull() {
            addCriterion("gain_grade_id is null");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdIsNotNull() {
            addCriterion("gain_grade_id is not null");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdEqualTo(Long value) {
            addCriterion("gain_grade_id =", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdNotEqualTo(Long value) {
            addCriterion("gain_grade_id <>", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdGreaterThan(Long value) {
            addCriterion("gain_grade_id >", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("gain_grade_id >=", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdLessThan(Long value) {
            addCriterion("gain_grade_id <", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdLessThanOrEqualTo(Long value) {
            addCriterion("gain_grade_id <=", value, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdIn(List<Long> values) {
            addCriterion("gain_grade_id in", values, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdNotIn(List<Long> values) {
            addCriterion("gain_grade_id not in", values, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdBetween(Long value1, Long value2) {
            addCriterion("gain_grade_id between", value1, value2, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andGainGradeIdNotBetween(Long value1, Long value2) {
            addCriterion("gain_grade_id not between", value1, value2, "gainGradeId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdIsNull() {
            addCriterion("member_gain_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdIsNotNull() {
            addCriterion("member_gain_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdEqualTo(Long value) {
            addCriterion("member_gain_id =", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdNotEqualTo(Long value) {
            addCriterion("member_gain_id <>", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdGreaterThan(Long value) {
            addCriterion("member_gain_id >", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdGreaterThanOrEqualTo(Long value) {
            addCriterion("member_gain_id >=", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdLessThan(Long value) {
            addCriterion("member_gain_id <", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdLessThanOrEqualTo(Long value) {
            addCriterion("member_gain_id <=", value, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdIn(List<Long> values) {
            addCriterion("member_gain_id in", values, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdNotIn(List<Long> values) {
            addCriterion("member_gain_id not in", values, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdBetween(Long value1, Long value2) {
            addCriterion("member_gain_id between", value1, value2, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andMemberGainIdNotBetween(Long value1, Long value2) {
            addCriterion("member_gain_id not between", value1, value2, "memberGainId");
            return (Criteria) this;
        }

        public Criteria andGainTypeIsNull() {
            addCriterion("gain_type is null");
            return (Criteria) this;
        }

        public Criteria andGainTypeIsNotNull() {
            addCriterion("gain_type is not null");
            return (Criteria) this;
        }

        public Criteria andGainTypeEqualTo(String value) {
            addCriterion("gain_type =", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeNotEqualTo(String value) {
            addCriterion("gain_type <>", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeGreaterThan(String value) {
            addCriterion("gain_type >", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeGreaterThanOrEqualTo(String value) {
            addCriterion("gain_type >=", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeLessThan(String value) {
            addCriterion("gain_type <", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeLessThanOrEqualTo(String value) {
            addCriterion("gain_type <=", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeLike(String value) {
            addCriterion("gain_type like", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeNotLike(String value) {
            addCriterion("gain_type not like", value, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeIn(List<String> values) {
            addCriterion("gain_type in", values, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeNotIn(List<String> values) {
            addCriterion("gain_type not in", values, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeBetween(String value1, String value2) {
            addCriterion("gain_type between", value1, value2, "gainType");
            return (Criteria) this;
        }

        public Criteria andGainTypeNotBetween(String value1, String value2) {
            addCriterion("gain_type not between", value1, value2, "gainType");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountIsNull() {
            addCriterion("discount_amount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountIsNotNull() {
            addCriterion("discount_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountEqualTo(BigDecimal value) {
            addCriterion("discount_amount =", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountNotEqualTo(BigDecimal value) {
            addCriterion("discount_amount <>", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountGreaterThan(BigDecimal value) {
            addCriterion("discount_amount >", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amount >=", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountLessThan(BigDecimal value) {
            addCriterion("discount_amount <", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amount <=", value, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountIn(List<BigDecimal> values) {
            addCriterion("discount_amount in", values, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountNotIn(List<BigDecimal> values) {
            addCriterion("discount_amount not in", values, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amount between", value1, value2, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andDiscountAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amount not between", value1, value2, "discountAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountIsNull() {
            addCriterion("use_require_amount is null");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountIsNotNull() {
            addCriterion("use_require_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountEqualTo(BigDecimal value) {
            addCriterion("use_require_amount =", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountNotEqualTo(BigDecimal value) {
            addCriterion("use_require_amount <>", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountGreaterThan(BigDecimal value) {
            addCriterion("use_require_amount >", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("use_require_amount >=", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountLessThan(BigDecimal value) {
            addCriterion("use_require_amount <", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("use_require_amount <=", value, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountIn(List<BigDecimal> values) {
            addCriterion("use_require_amount in", values, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountNotIn(List<BigDecimal> values) {
            addCriterion("use_require_amount not in", values, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("use_require_amount between", value1, value2, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andUseRequireAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("use_require_amount not between", value1, value2, "useRequireAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountIsNull() {
            addCriterion("reduced_amount is null");
            return (Criteria) this;
        }

        public Criteria andReducedAmountIsNotNull() {
            addCriterion("reduced_amount is not null");
            return (Criteria) this;
        }

        public Criteria andReducedAmountEqualTo(BigDecimal value) {
            addCriterion("reduced_amount =", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountNotEqualTo(BigDecimal value) {
            addCriterion("reduced_amount <>", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountGreaterThan(BigDecimal value) {
            addCriterion("reduced_amount >", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("reduced_amount >=", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountLessThan(BigDecimal value) {
            addCriterion("reduced_amount <", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("reduced_amount <=", value, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountIn(List<BigDecimal> values) {
            addCriterion("reduced_amount in", values, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountNotIn(List<BigDecimal> values) {
            addCriterion("reduced_amount not in", values, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("reduced_amount between", value1, value2, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andReducedAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("reduced_amount not between", value1, value2, "reducedAmount");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andSettingSortIsNull() {
            addCriterion("setting_sort is null");
            return (Criteria) this;
        }

        public Criteria andSettingSortIsNotNull() {
            addCriterion("setting_sort is not null");
            return (Criteria) this;
        }

        public Criteria andSettingSortEqualTo(Integer value) {
            addCriterion("setting_sort =", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortNotEqualTo(Integer value) {
            addCriterion("setting_sort <>", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortGreaterThan(Integer value) {
            addCriterion("setting_sort >", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("setting_sort >=", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortLessThan(Integer value) {
            addCriterion("setting_sort <", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortLessThanOrEqualTo(Integer value) {
            addCriterion("setting_sort <=", value, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortIn(List<Integer> values) {
            addCriterion("setting_sort in", values, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortNotIn(List<Integer> values) {
            addCriterion("setting_sort not in", values, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortBetween(Integer value1, Integer value2) {
            addCriterion("setting_sort between", value1, value2, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingSortNotBetween(Integer value1, Integer value2) {
            addCriterion("setting_sort not between", value1, value2, "settingSort");
            return (Criteria) this;
        }

        public Criteria andSettingTypeIsNull() {
            addCriterion("setting_type is null");
            return (Criteria) this;
        }

        public Criteria andSettingTypeIsNotNull() {
            addCriterion("setting_type is not null");
            return (Criteria) this;
        }

        public Criteria andSettingTypeEqualTo(String value) {
            addCriterion("setting_type =", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeNotEqualTo(String value) {
            addCriterion("setting_type <>", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeGreaterThan(String value) {
            addCriterion("setting_type >", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeGreaterThanOrEqualTo(String value) {
            addCriterion("setting_type >=", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeLessThan(String value) {
            addCriterion("setting_type <", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeLessThanOrEqualTo(String value) {
            addCriterion("setting_type <=", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeLike(String value) {
            addCriterion("setting_type like", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeNotLike(String value) {
            addCriterion("setting_type not like", value, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeIn(List<String> values) {
            addCriterion("setting_type in", values, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeNotIn(List<String> values) {
            addCriterion("setting_type not in", values, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeBetween(String value1, String value2) {
            addCriterion("setting_type between", value1, value2, "settingType");
            return (Criteria) this;
        }

        public Criteria andSettingTypeNotBetween(String value1, String value2) {
            addCriterion("setting_type not between", value1, value2, "settingType");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountIsNull() {
            addCriterion("consume_use_amount is null");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountIsNotNull() {
            addCriterion("consume_use_amount is not null");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountEqualTo(BigDecimal value) {
            addCriterion("consume_use_amount =", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountNotEqualTo(BigDecimal value) {
            addCriterion("consume_use_amount <>", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountGreaterThan(BigDecimal value) {
            addCriterion("consume_use_amount >", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("consume_use_amount >=", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountLessThan(BigDecimal value) {
            addCriterion("consume_use_amount <", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("consume_use_amount <=", value, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountIn(List<BigDecimal> values) {
            addCriterion("consume_use_amount in", values, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountNotIn(List<BigDecimal> values) {
            addCriterion("consume_use_amount not in", values, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("consume_use_amount between", value1, value2, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andConsumeUseAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("consume_use_amount not between", value1, value2, "consumeUseAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountIsNull() {
            addCriterion("recharge_amount is null");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountIsNotNull() {
            addCriterion("recharge_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountEqualTo(BigDecimal value) {
            addCriterion("recharge_amount =", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountNotEqualTo(BigDecimal value) {
            addCriterion("recharge_amount <>", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountGreaterThan(BigDecimal value) {
            addCriterion("recharge_amount >", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("recharge_amount >=", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountLessThan(BigDecimal value) {
            addCriterion("recharge_amount <", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("recharge_amount <=", value, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountIn(List<BigDecimal> values) {
            addCriterion("recharge_amount in", values, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountNotIn(List<BigDecimal> values) {
            addCriterion("recharge_amount not in", values, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("recharge_amount between", value1, value2, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andRechargeAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("recharge_amount not between", value1, value2, "rechargeAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountIsNull() {
            addCriterion("gain_amount is null");
            return (Criteria) this;
        }

        public Criteria andGainAmountIsNotNull() {
            addCriterion("gain_amount is not null");
            return (Criteria) this;
        }

        public Criteria andGainAmountEqualTo(BigDecimal value) {
            addCriterion("gain_amount =", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountNotEqualTo(BigDecimal value) {
            addCriterion("gain_amount <>", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountGreaterThan(BigDecimal value) {
            addCriterion("gain_amount >", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("gain_amount >=", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountLessThan(BigDecimal value) {
            addCriterion("gain_amount <", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("gain_amount <=", value, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountIn(List<BigDecimal> values) {
            addCriterion("gain_amount in", values, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountNotIn(List<BigDecimal> values) {
            addCriterion("gain_amount not in", values, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gain_amount between", value1, value2, "gainAmount");
            return (Criteria) this;
        }

        public Criteria andGainAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gain_amount not between", value1, value2, "gainAmount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}